package json;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;

import org.json.JSONException;
import org.json.JSONObject;

import com.ruiyi.baseparser.AbstractParser;
import com.ruiyi.baseparser.RuiyiType;


import android.os.Parcel;
import android.os.Parcelable;

//*********************************************************************************************
public class Json_Company implements RuiyiType {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4282950537645231509L;
	private long companyid;
	private String companyname;
	private String name;
	private String address;

	private String homepage;
	private String siteurl;

	private String info;
	private String logo;

	private String contactpeople;
	private String contactphone;

	private String email;
	private String product;

	private long siteid;
	private String icname;
	private String icaddress;
	private String icbusiness;
	private Date icbuilddate;
	private Date icexpirestart;
	private Date icexpireend;
	private String iclegalperson;
	private int iccompanytype;
	private long icregisteredcapital;
	private long icpaidcapital;
	private String icaudit;
	private String iclicensesn;
	private String iclicenseregisteredsn;
	private String iclicensecopysn;

	private String shortname;
	private String businesshour;

	private String province;
	private String city;
	private String area;

	private String street;
	private String mapx;
	private String zipcode;
	private Date opendate;
	private String employeecount;
	private String payment;

	private String telephone;
	private String mobilephone;

	private String im;

	private String website;

	private String mapy;
	private int cityid;
	private String contactfax;
	private String circle;
	private int cateid;
	private String catename;

	public long getId() {
		return (int) companyid;
	}

	public void setId(long id) {
		this.companyid = id;
	}

	public String getCompanyName() {
		return companyname; // for .net
		// return name; // for .org
	}

	public void setCompanyName(String companyname) {
		this.companyname = companyname; // for .net
		// this.name = name; // for .org
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		// TODO Auto-generated method stub
		this.logo = logo;
	}

	public String getCompanyLogo() {
		return logo;
	}

	public void setCompanyLogo(String logo) {
		this.logo = logo;
	}

	public String getypCateName() {
		return this.catename;
	}

	public void setypCateName(String catename) {
		this.catename = catename;
	}

	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String[] getMapXY() {
		if ("".equals(this.mapx) || "".equals(this.mapy))
			return null;

		String[] mapz = new String[2];
		mapz[0] = this.mapx;
		mapz[1] = this.mapy;
		return mapz;
	}

	public void setMapXY(String x, String y) {
		this.mapx = x;
		this.mapy = y;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String addr) {
		this.address = addr;
	}

	public String getInfo() {
		return info;
	}

	protected void setInfo(String info) {
		// TODO Auto-generated method stub
		this.info = info;
	}

	public void setParentnames(String info) {
		this.info = info;
	}

	public String getIcName() {
		return this.icname;
	}

	public void setIcName(String icname) {
		this.icname = icname;
	}

	public String getMobile() {
		return this.mobilephone;
	}

	public void setMobile(String mobilephone) {
		this.mobilephone = mobilephone;
	}

	public String getEMail() {
		return this.email;
	}

	public void setEMail(String email) {
		this.email = email;
	}

	public String getWebSite() {
		return this.website;
	}

	public void setWebSite(String website) {
		this.website = website;
	}

	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getProduct() {
		return this.product;
	}

	public void setProduct(String product) {
		this.product = product;
	}
}